<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>购物车</title>
    <link rel="stylesheet" href="../../static/css/common/adaptor.css">
    <link rel="stylesheet" href="../../static/css/common/common.css">
    <link rel="stylesheet" href="../../static/css/me/shoppingCar.css">
</head>

<body>
    <div class="layout">
        <div class="loadingMarsk">
            <div class="loadingPic">
                <div class="rotatePic"><img src="../../static/img/1@3x.png" alt=""></div>
                <div class="centerPic"><img src="../../static/img/2@3x.png" alt=""></div>
            </div>
        </div>
        <div class="header"><span>购物车</span>
            <div class="backArrow"></div>
        </div>
        <div class="carList">
            <!-- 动态渲染 -->
        </div>
        <div class="emptyCarBox">
            <!-- 动态渲染 -->
        </div>
        <div class="like clearfix">
            <div class="likeIcon"></div>
            <div class="likeProduct clearfix">
                <div class="itemBox clearfix">
                    <!-- 动态渲染 -->
                </div>
                <div class="end"><img src="../../static/img/theend@3x.png" alt=""></div>
            </div>
        </div>
    </div>
    <!-- 购物车列表 -->
    <script type="text/template" id="carList">
        {{each carList as item index}}
        <div class="carItem">
            <div class="scrollBox clearfix">
                <div class="carMsg clearfix">
                    <div class="checkBox">
                        <label for="carCheck" class="lable"><img src="../../static/img/ico_selectk@3x.png" alt=""></label>
                        <input type="hidden" id="carCheck" class="select" name="carCheck" value="0">
                    </div>
                    <div class="carImg"><img src="{{item.pic}}" alt=""></div>
                    <div class="carDetail">
                        <div class="productName">{{item.productName}}</div>
                        <div class="size" data-skuId="{{item.skuId}}">{{item.sku}}</div>
                        <div class="monney" data-sprice="{{item.price}}">￥ {{item.price.toFixed(2)}}</div>
                        <div class="dcn clearfix">
                            <span class="diamond" data-diamond="{{item.diamond}}">钻石：<span class="orange">{{item.diamond.toFixed(2)}}</span></span>
                            <span class="cash" data-cash="{{item.diamondPrice}}">现金：<span class="orange">{{item.diamondPrice.toFixed(2)}}</span></span>
                        </div>
                        <span class="productNum">x<span class="pNum">{{item.count}}</span></span>
                    </div>
                </div>
                <div class="functionBtn">
                    <div class="delBtn" data-id="{{item.cartId}}">删除</div>
                    <div class="cutAndAddBtn">
                        <div class="cut" data-id="{{item.cartId}}"></div>
                        <div class="num">{{item.count}}</div>
                        <div class="add" data-id="{{item.cartId}}"></div>
                    </div>
                </div>
            </div>
        </div>
        {{/each}} {{if carList.length!==0}}
        <div class="calculate clearfix">
            <div class="leftPart clearfix">
                <div class="selectAll">
                    <label for="allCheck" class="selectAllLable"><img src="../../static/img/ico_selectk@3x.png" alt=""></label>
                    <input type="hidden" id="carCheck" class="selectAll selectAllStatus" name="carCheck" value="0">
                </div>
                <div class="selectAllText">全选</div>
                <div class="total">
                    <div class="totalMoney">合计：<span>￥ <span class="tMoney">0.00</span></span>
                    </div>
                    <div class="totalNum">共<span class="tNum">0</span>件商品</div>
                </div>
            </div>
            <div class="rightPart" data-paystatus=0>结算</div>
        </div>
        {{/if}}
    </script>
    <!-- 空的购物车 -->
    <script type="text/template" id="emptyCarBox">
        {{if length===0}}
        <div class="emptyCar">
            <div class="carIcon"></div>
            <div class="carText">
                <div class="big">你的购物车为空</div>
                <div class="small">可以看看还有哪些想买的</div>
            </div>
        </div>
        {{/if}}
    </script>
    <!-- 猜你喜欢 -->
    <script type="text/template" id="itemBox">
        {{each productList as item index}}
        <div class="likeProductItem" data-id={{item.id}}>
            <div class="likeProductPic">
                <img src="{{item.midPic}}" alt="">
            </div>
            <div class="likeProductMsg">
                <div class="likeBrandName">{{item.brandName}}</div>
                <div class="likeProductName">{{item.productName}}</div>
                <div class="likePrice">￥ {{item.price.toFixed(2)}}</div>
            </div>
        </div>
        {{/each}}
    </script>
    <script src="../../static/assets/jquery/jquery.min.js"></script>
    <script src="../../static/assets/fastclick/fastclick.js"></script>
    <script src="../../static/assets/art-template/template.js"></script>
    <script src="../../static/assets/pullmaster/pull.min.js"></script>
    <script src="../../static/js/config/config.js"></script>
    <script src="../../static/js/config/tools.js"></script>
    <script src="../../static/js/me/shoppingCar.js"></script>
</body>

</html>